/**
 * Company:wz
 * Title:GlobalConstant.java
 * Description:
 * Date:2016年6月7日上午10:57:27
 * author:wei.liang 
 * Version:V1.0
 */

package com.wz.datachannel.common;

/**
 * @Description
 * @author wei.liang
 * @Date 2016年6月7日上午10:57:27
 */
public class GlobalConstant {
	/**
	 * 调用者需拥有的权限
	 */
	public static final String PERMISSION_DATA_CHANNEL = "com.wz.permission.DATA_CHANEL";

	public static final int COMMAND_HEART_REQUEST = 100;//心跳请求->C/S
	public static final int COMMAND_HEART_RESPONSE = 101;//心跳回复->C/S
	public static final int COMMAND_LOGIN_CHANNEL_REQUEST = 1000;//登录请求->S
	public static final int COMMAND_LOGIN_CHANNEL_RESPONSE = 1001;//登录回复->C
	public static final int COMMAND_SYSTEM_MSG = 1002;//系统消息->C
	public static final int COMMAND_LOGOUT_REQUEST = 1003;//退出请求->S
	public static final int COMMAND_SERVER_DISCONNECT = 1004;//服务断开->C
	public static final int COMMAND_UPDATE_OWN_INFO_REQUEST = 1005;//修改资料->S
	public static final int COMMAND_UPDATE_OWN_INFO_RESPONSE = 1006;//修改资料回复->C
	public static final int COMMAND_NTF_UPDATE_OWN_INFO = 1007;//资料更新通知->C
	public static final int COMMAND_BUSINESS_DATA = 2000;//业务消息包,-登录成功后才会处理.->->C/S
	public static final int COMMAND_LOGIN_BUSINESS_REQUEST = 1010;//业务登录请求->S
	public static final int COMMAND_LOGIN_BUSINESS_RESPONSE = 1011;//业务登录回复->C
	public static final int COMMAND_LOGOUT_BUSINESS_REQUEST = 1020;//业务登出请求->S
	public static final int COMMAND_LOGOUT_BUSINESS_RESPONSE = 1021;//业务登出通知->C,1=正常断开-1 该业务不是登录状态退出失败-2 业务被禁止使用
	//授权登录部分
	public static final int COMMAND_VERIFY_LOGIN_REQUEST = 1030;//帐号授权登陆请求->由预登陆客户端发出
	public static final int COMMAND_VERIFY_LOGIN_RESPONSE = 1031;//帐号授权登陆回复->服务器回复请求客户端
	public static final int COMMAND_VERIFY_APPLY_NOTIFITION = 1032;//帐号授权申请通知->由服务器发往已登陆的帐号设备，由该帐号确认是否通过授权
	public static final int COMMAND_VERIFY_APPLY_ACK = 1033;//帐号授权应答->由授权设备帐号将授权应答发往服务器端
	public static final int COMMAND_VERIFY_APPLY_RESULT = 1034;//帐号授权回复->由服务器将授权结果发送给登陆客户端

}
